package jsu.ask.service;

import jsu.ask.pojo.User;

import java.util.List;

public interface UserService {
    //增加用户
    int addUser(User user);

    //删除用户
    int deleteUserById(int uid);

    //更新用户
    int updateUser(User user);

    //查询一个用户
    User queryUserById(int uid);

    //查询全部的用户
    List<User> queryAllUser();

    //登录验证用户名和密码
    User queryUser(String username,String userpassword);

    User queryUserByName(String username);


}
